//
//  LayerManager.m
//  airplane
//
//  Created by gump gump on 5/21/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "LayerManager.h"
#import "CCDirector.h"
#import "HelloWorldLayer.h"
#import "BaiqiLayer.h"
#import "AirGameLayer.h"

@implementation LayerManager

static LayerManager *_sharedLayerMag = nil;

+ (LayerManager *)sharedLayerMag
{
	if (!_sharedLayerMag) {
			_sharedLayerMag = [[self alloc] init];
	}
    
	return _sharedLayerMag;
}


-(void)toMenuLayer
{
    [[CCDirector sharedDirector] replaceScene: [HelloWorldLayer scene]];
}

-(void)toBaiQiLayer
{
    [[CCDirector sharedDirector] replaceScene: [BaiqiLayer scene]];
}

-(void)toGameLayer
{
    [[CCDirector sharedDirector] replaceScene: [AirGameLayer scene]];
}

@end
